package com.microservice.config;

import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign 配置了；类
 * Created by bf on 2017/11/15.
 */
@Configuration
public class FeignConfiguretion2 {

    /**
     * 配置 Eureka 的登录用户名和密码
     * @return
     */
    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
        return new BasicAuthRequestInterceptor("admin", "123456");
    }

}
